<?php

namespace MyApp\Controller;

use RedBean_Facade as R;
use Lib\Annotations\Route as Route;
use Lib\Annotations\Middleware as Middleware;

/**
 * 
 * @Route("/cfg")
 */
class CfgController extends \SlimController\SlimController
{
    /**
     * 
     * @Route("/update", name="cfg_update")
     */
    public function updateAction()
    {
        $app = $this->app;
        $cfgKey = $app->config('cfg_key');
        $cfgSecret = $app->config('cfg_secret');
        sha1("$cfgKey&$cfgSecret");
    }
}